<div class="content">
	<div class="sixteen columns container">
			<?php if (have_posts()): $p = 1;?>
			<div class="box-wrapper">
				<?php while (have_posts()):?>
					<?php 
						// Populate the post data
						the_post();
						
						// Load the post
						octoms('template',OMS_L)->widget('_content','post',
							array(
								get_the_ID(),
								$p
							)
						);
							
						// Increment the position
						$p = ($p==14?1:$p+1);
					?>
				<?php endwhile;?>
			</div>
			<?php 
				// Handle the AJAX calls
				octoms('template',OMS_L)->widget('_content','post_ajax');
				
				// Done
				else:
			?>
			No posts to show.
			<?php 
				// Handle the AJAX calls
				octoms('template',OMS_L)->widget('_content','post_ajax');
				endif;
			?>
	</div>
</div>